package shared.highcharts.config

import dataclass.data
import java.lang.{Integer => JInt, Double => JDouble, Boolean => JBoolean}

@data class SeriesVennData(
                            sets: Option[Seq[String]],
                            value: Option[Double],
                            name: Option[String],
                          )

object SeriesVennData {
  def apply(
             sets: Seq[String] = null,
             value: JDouble = null,
             name: String = null,
           ) = new SeriesVennData(
    Option(sets),
    Option(value).map(x=>x),
    Option(name),
  )
}
